package com.xiao.sulinguser.myenum;

/**
 * @author: 1322127758@qq.com
 * @date: 2022/3/13 11:02
 * @作用:
 */
public enum RedisEnum {
    /*验证码过期*/
    LOGIN_FAIL("登入失败",-2),
    VERIFY_CODE_EXP("验证码过期",-1),
    SEND_CODE_SUCCESS("验证码发送成功",0),
    ;

    private final String mess;
    private final Integer code;

    RedisEnum(String mess, Integer code){
        this.mess = mess;
        this.code = code;
    }

    public Integer getCode(){
        return this.code;
    }
    public String getMess(){
        return this.mess;
    }
}
